package com.sefon.smarteconomy.controller;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * 
* Copyright: Copyright (c) 2018 SefonSoft
* 
* @ClassName: TemplateController.java
* @Description: 页面访问
*
* @version: v1.0.0
* @author: SF2170
* @date: 2018年3月21日下午4:05:30
*
 */
@Controller
@RequestMapping("/page")
public class TemplateController {

	 @RequestMapping(value="/test",method= RequestMethod.GET)
	public ModelAndView show(HttpServletRequest request, HttpServletResponse response,String id) {
		
		request.setAttribute("login", "ccf");
		
		return new ModelAndView("index", new HashMap<String, Object>(){
			private static final long serialVersionUID = 1L;
			{
				put("login", "ccf");
			}
		});
	}
}
